package cn.xtits.xtf.common.db.shard;

import org.springframework.util.Assert;

/**
 * Created by ShengHaiJiang on 16/4/5.
 */
public class AreaDbShardStrategy implements XTDbShardStrategy {
    @Override
    public String defaultDbShard(Object shardKey) {
        Assert.notNull(shardKey);
        return "area_" + (String)shardKey;
    }
}
